package demo3;

public class Test {

    public static void drawMap(IShape iShape) {
        iShape.draw();
    }

    public static void main(String[] args) {
      drawMap(new Flower());
      drawMap(new Rect());
      drawMap(new Cycle());
    }



    public static void main1(String[] args) {
        IShape iShape1 = new Flower();
        IShape iShape2 = new Cycle();
        IShape iShape3 = new Rect();

        iShape1.draw();
        iShape2.draw();
        iShape3.draw();
    }
}
